﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;
using YaAppoint.Response;
using YaAppoint.Users;

namespace YaAppoint.DepartmentUsers
{
    /// <summary>
    /// 科室用户服务接口
    /// </summary>
    [RemoteService(isEnabled: false)]
    public interface IDepartmentUserAppService:IApplicationService
    {
        /// <summary>
        ///  获取科室tree组件数据
        /// </summary>
        Task<BackJson> GetTreeDataAsync();

        Task<BackJson> GetListAsync(Guid id,string? filterName,int page,int pageSize);

        /// <summary>
        ///  加载可以添加到特定科室的用户
        /// </summary>
        Task<BackJson> GetUsersForAdd(Guid id, string? filterName, int page, int pageSize);

        /// <summary>
        ///  为特定科创建用户
        /// </summary>
        Task<BackJson> CreateUserForDepartmentAsync(UserCreateDto dto, Guid depId);

        /// <summary>
        ///  向特定科室添加现有用户
        /// </summary>
        Task<BackJson> AddCurrentUserToDepartmentAsync( List<Guid> idList, Guid id);

        /// <summary>
        ///  从特定科室移除指定用户(多个)
        /// </summary>
        Task<BackJson> RemoveUsersFromDepartmentAsync(List<Guid> idList, Guid depId);

        /// <summary>
        /// 根据用户ID，删除科室用户
        /// </summary>
        Task<BackJson> DeleteAllDeparmentUsersByUserIdAsync(Guid Id);
    }
}
